﻿'Classe abstrata para ter as propriedades partilhadas de uma compra e venda
Imports System.ComponentModel.DataAnnotations.Schema
Imports StandAuto.Database

Public Interface ITransacao
    Property data As DateTime
    Property valor As Decimal
    Property quantidade As Integer
    Property veiculoId As Integer
    <ForeignKey("veiculoId")>
    Property veiculo As Veiculo

End Interface
Public MustInherit Class Transacao
    Implements ITransacao
    Public Property data As Date Implements ITransacao.data
    Public Property quantidade As Integer Implements ITransacao.quantidade
    Public Property valor As Decimal Implements ITransacao.valor
    Public Property veiculoId As Integer Implements ITransacao.veiculoId
    <ForeignKey("veiculoId")>
    Public Property veiculo As Veiculo Implements ITransacao.veiculo

End Class